package com.young.ums.cloud;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.ComponentScan;

/**
 * Created by Administrator on 2018/9/2.
 */
@SpringBootApplication
@EnableEurekaClient
@ComponentScan("com.young")
/*@EnableAutoConfiguration*/
public class UmsApplication {

    private static final Logger logger = LoggerFactory.getLogger(UmsApplication.class);

    /**
     * 程序入口，启动springboot
     * @param args
     */
    public static void main(String[] args) {
        SpringApplication.run(UmsApplication.class, args);
        logger.info("[UMS] UMS启动完成.");
    }
}
